package com.shenyong.ladmin.controller;

import com.shenyong.ladmin.result.Page;
import com.shenyong.ladmin.service.LogService;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author
 * @site
 * @company
 * @create
 */
@RestController
@RequestMapping("/LogC")
public class LogController {
    @Autowired
    private LogService logService;
    @RequiresAuthentication
    @RequestMapping("/getLogPage")
    public Map<String,Object> getLogPage(Page page){
        return  logService.getPageLog(page);
    }
}
